import request from '@/utils/request'

// 查询调度日志列表
export function listJobLog(data) {
  return request({
    url: '/monitor/jobLog/list',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: data
  })
}

// 删除调度日志
export function delJobLog(jobLogId) {
  return request({
    url: '/monitor/jobLog/' + jobLogId,
    method: 'POST',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

// 清空调度日志
export function cleanJobLog() {
  return request({
    url: '/monitor/jobLog/clean',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'POST'
  })
}

// 查询调度日志详细
export function getJobLog(jobLogId) {
  return request({
    url: '/monitor/jobLog/' + jobLogId,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'GET'
  })
}


// 导出调度日志
export function exportJobLog(data) {
  return request({
    url: '/monitor/jobLog/export',
    method: 'POST', responseType: 'blob',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params: data
  })
}